package com.elsa.smart_buffet.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.elsa.smart_buffet.pojo.Comsumer;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

import java.util.List;

@Mapper
public interface ConsumerMapper extends BaseMapper<Comsumer> {

    List<Comsumer> getConsumerByTimeAndSex(@Param("time1") String time1, @Param("time2") String time2, @Param("sex") String sex);

    List<Comsumer> getConsumerBySearchData(@Param("data") String data);

}